(function($) {
  'use strict';

  $(function() {
    var $fullText = $('.admin-fullText');
    $('#admin-fullscreen').on('click', function() {
      $.AMUI.fullscreen.toggle();
    });

    $(document).on($.AMUI.fullscreen.raw.fullscreenchange, function() {
      $fullText.text($.AMUI.fullscreen.isFullscreen ? '退出全屏' : '开启全屏');
    });
  });
})(jQuery);



var appinit = function (name){	

	var path =  "assets/js";

	var requirejsPath = path + "/require.js";
	var commonPath = path + "/app/common"
	requirejs([commonPath], function (common) {
		requirejs(['app/'+name+''], function(_ui){
			window.ui = _ui;
		});
	}); 
}


